package me.ereach.concurrency;

public class MyTask implements Runnable {
    @Override
    public void run() {
        System.out.println("MyTask starting..." + Thread.currentThread().getName());

        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("MyTask finished." + Thread.currentThread().getName());
    }
}
